/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spud;

import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;

/**
 *
 * @author bsmith
 */
public class ArgHandler {

    private JCommander jcommander = null;
    private ArgParameters argParameters = null;

    public class ArgParameters {

        @Parameter(names = "-datadir", required = true, description = "Data directory where Finance spreadsheets are.")
        private String spreadSheetDir;
        
        public String getDataDir() {
            return spreadSheetDir;
        }
    }

    public ArgHandler(String[] args) {
        argParameters = new ArgParameters();
        jcommander = new JCommander(argParameters, args);
        System.out.println("Args: " + jcommander);
    }

    public JCommander getJCommander() {
        return jcommander;
    }
    
    public ArgParameters getArgs() {
        return argParameters;
    }
}
